Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: VS Code snippets #73

Merged
merged 10 commits into from
Nov 22, 2021
Merged

feat: VS Code snippets #73

merged 10 commits into from
Nov 22, 2021

Conversation

LogCreative
Copy link
Contributor

@LogCreative LogCreative commented Nov 22, 2021

该 PR 添加了对于 dtx 文件的 VS Code Snippets 编译器。在 l3build check 阶段生成。

snippet

.vscode/sjtubeamer.code-snippets 文件在 l3build check 阶段生成,会在输入对应的触发前缀(prefix)时提供代码补全提示,提示内容根据 macro 环境的第一段内容生成(macrocode 之前的内容)。为了让这个简易的编译器正常运行,源代码(dtx)需要遵循开发文档中的代码风格规则。

beamer 自身的 snippets 由 LaTeX-Workshop 扩展提供。
按照道理,模板不应当在编辑器上有偏好,专有编辑器如 TeX Studio, TeX Works 并没有提供类似的扩展方法,其他的编辑器如 Vim 等或许会在未来的一些时机通过 Language Server Protocol 以获得跨编辑器的代码补全支持(还在考虑)。
发布包不包含 code snippets。

@LogCreative LogCreative enabled auto-merge (squash) November 22, 2021 05:13
@LogCreative LogCreative merged commit 544e1b8 into main Nov 22, 2021
@LogCreative LogCreative deleted the logcreative-ideext branch November 22, 2021 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants